-- GENERATED SPELL FOR [Scarlet Medic] --


function spell0_10605(pUnit, Event) --@Flash Heal,Heal--
pUnit:FullCastSpellOnTarget(17137,pUnit)
pUnit:RegisterEvent('Sorts_10605', 1500, 1)
end

function spell1_10605(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_10605', 15000, 1)
end

function spell2_10605(pUnit, Event) --@Resist Arcane,n/a--
pUnit:FullCastSpellOnTarget(17175,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10605', 522, 1)
end

function Sorts_10605(pUnit, Event)
local choix_sorts_10605 = math.random(0, 2)
if choix_sorts_10605 == 0 then
pUnit:RegisterEvent('spell0_10605', 1, 1)
end
if choix_sorts_10605 == 1 then
pUnit:RegisterEvent('spell1_10605', 1, 1)
end
if choix_sorts_10605 == 2 then
pUnit:RegisterEvent('spell2_10605', 1, 1)
end
end

function mob10605_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10605', math.random(1500, 3000), 1)
end

function mob10605_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10605_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10605_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10605, 1, 'mob10605_Action')
RegisterUnitEvent(10605, 2, 'mob10605_Leave')
RegisterUnitEvent(10605, 3, 'mob10605_Kill')
RegisterUnitEvent(10605, 4, 'mob10605_Die')
